package com.zyg;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.File;

/**
 * @author: 牛二
 * @date: 2020/8/20 17:52
 * @email: 550354312@qq.com
 * @project: zyg_project_demo
 * @describe:
 */
@Slf4j

@RestController
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan("com.zyg.dao")
public class FileServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(FileServiceApplication.class, args);
        log.info("=======================");
        log.info("===zyg-file 启动完毕===");
        log.info("=======================");
    }

    @RequestMapping("/")
    public String hello(){
        return "zyg-file startup successfully";
    }

}
